package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import android.view.KeyEvent;

public class DeliveryExpressLookActivity extends SingleFragmentActivity {

  DeliveryExpressLookFragment mFragment;

  @Override protected Fragment createFragment() {
    mFragment = new DeliveryExpressLookFragment();
    return mFragment;
  }

  @Override public boolean onKeyDown(int keyCode, KeyEvent event) {
    // 处理WebView跳转返回
    if ((keyCode == KeyEvent.KEYCODE_BACK)) {
      mFragment.goBack();
      return true;
    } else {
      System.exit(0);
    }
    return super.onKeyDown(keyCode, event);
  }
}
